import http from 'pub-bbx-api';

function request(config: any) {
  return config;
}

function response(e: any) {
  return e;
}

function fail(e: any) {
  return Promise.reject(e);
}

http.instance.interceptors.request.use(request, fail);
http.instance.interceptors.response.use(response, fail);

export default http;